# patientCondition has a type and is of the form 'attribute' 'comparand' 'value'
class patientCondition:
    def __init__(self,type_,att,comp,val):
        self.type_ = type_
        self.attribute = att
	self.comparand = comp
        self.value = val

    def getType(self):
	return self.type_

    def getAtt(self):
	return self.attribute

    def getComp(self):
	return self.comparand

    def getOppComp(self):
        if self.comparand == '<':
            return '>'
        elif self.comparand == '<=':
            return '>='
        elif self.comparand == '>':
            return '<='
        elif self.comparand == '>=':
            return '<='
        elif self.comparand == '=':
            return '='

    def getVal(self):
	return self.value

    def setVal(self, val):
	self.value = val
